This version of the code adds a boolean variable , 這個版本的代碼添加了一個布爾變量
If you require a boolean variable that can also have a value of 值的布爾型變量,請使用
Nullable booleans are similar to the boolean variable type used in sql 可空布爾值類似于sql中使用的布爾變量類型。為了確保
For an example of when you might use a nullable type , consider how an ordinary boolean variable can have two values : true and false 有關可能使用可空類型的示例,請考慮普通的布爾變量如何能夠具有兩個值: true和false 。
For example , c treats boolean variables as single - byte values , while the common language runtime marshals them as four - byte values to match the boolean type defined by the microsoft win32 api 例如, c + +將布爾變量視為單字節值,而公共語言運行庫將它們作為四字節值進行封送以匹配microsoft win32 api定義的